def sayHello(**args):
    print(args)
    print('Hello '+ args['name'])
    print('We have a '+ args['weather'] +  ' day')
    print('What a nice '+ args['week'] + ' today')

sayHello(name="Joe",week="Monday",weather="sunny")

# 和 * 差别不大
'''
{'name': 'Joe', 'week': 'Monday', 'weather': 'sunny'}
Hello Joe
We have a sunny day
What a nice Monday today
'''


def sayHello(myname,*args,**kwargs):
    print('My name is ' + myname,end=', Hello:')
    print(','.join(list(args)))
    print('We have a ' + kwargs.get('weather','good') + ' day')
    print('What a nice ' + kwargs.get('week','day') + ' today')
sayHello("Joe","Pony","Tony",week="Moday",weather="sunny")
sayHello("Joe")

#稍微有点看不懂了...
'''
My name is Joe, Hello:Pony,Tony
We have a sunny day
What a nice Moday today
My name is Joe, Hello:
We have a good day
What a nice day today
'''
